package ysq.xyg.base.extend.ehcache;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysq.xyg.base.util.BaseConstant;
import ysq.xyg.sys.model.po.SysConfig;
import ysq.xyg.sys.service.SysConfigService;

import java.util.List;

/**
 * 缓存实现
 *
 * @author taocongcong
 * @create 2019-04-11 17:20
 */
@Service("ehCacheService")
public class EhCacheServiceImpl implements EhCacheService {

    @Autowired
    private SysConfigService sysConfigService;

    @Override
    public List<SysConfig> selectSysConfigList() {
        SysConfig record = new SysConfig();
        record.setRemoveTag(BaseConstant.BASE_REMOVE_TAG_NORMAL);
        return sysConfigService.select(record);
    }

    @Override
    public void evictSysConfig() {

    }
}
